package com.carkeeper.serviceManagement.feign;

import com.carkeeper.serviceManagement.pojo.Service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author pengjinxiong
 * @version 1.0
 * @date 2020/11/24 15:01
 */
@FeignClient(name = "service")
public interface ServiceFeign {
    //es用
    @GetMapping("/service/findListById/{serviceId}")
     List<Service> findListById(@PathVariable("serviceId") String serviceId);

    //根据服务编码查询服务目录
    @GetMapping("/service/findServiceByCode/{code}")
    Service findServiceByCode(@PathVariable("code") String code);
}


